{{extend "base.html"}}

{{block content}}
<div style="padding: 5px;">
		<table class="tableForm" id="tb">
        	<tbody>
            <tr>
      				<th style="width: 80px;">宿主机IP</th>
      				<td>{{=parasitifer_ip}}</td>
      			</tr>
            <tr>
              <th style="width: 80px;">CPU信息</th>
              <td>{{=cpu}}核</td>
            </tr>
            <tr>
              <th style="width: 80px;">内存信息</th>
              <td>{{=mem}}</td>
            </tr>
            <tr>
              <th style="width: 80px;">硬盘信息</th>
              <td>{{=disk}}</td>
            </tr>
      			<tr>
      				<th style="width:80px;">操作系统</th>
      				<td>{{=os_name}}
      				</td>
      			</tr>
      			<tr>
      				<th style="width: 80px;">主机名</th>
      				<td>{{=system_hostname}}
      				</td>
      			</tr>			
      			<tr>
      				<th style="width: 80px;">系统分区</th>
      				<td colspan="3"><textarea name="comment" readonly="true" style="height: 100px;width: 97%;">{{=system_partition}}</textarea>
      				</td>
      			</tr> 
      			<tr>
                  <th style="width:80px;">状态信息</th>
                  <td>{{=hardwarestatus}}
                  </td>
			       </tr>
              <tr>
        				<th style="width: 80px;">应用主题</th>
        				<td>{{=department_name}}&nbsp&nbsp{{=opersgroup_name}}&nbsp&nbsp{{=opersgroupproject_name}}&nbsp&nbsp{{=applicationtype_name}}
        				</td>
        			</tr>
              <tr>
      				<th style="width: 80px;">网卡接入配置</th>
      				<td>
                	<table>
                	  	<thead><tr><td>类型</td><td>设备名</td><td>物理接口</td><td>ip地址</td><td>映射IP</td></tr></thead>
                        {{for i in eth_ip:}}
                        <tr>
                            <td>{{if i.ethernet_type == 0:}}虚拟{{else:}}物理{{pass}}</td>
                            <td>{{=i.ethernet_dev_name}}</td>
                            <td>{{if i.ethernet_physical_interface != 0:}}{{=i.ethernet_physical_interface}}{{pass}}</td>
                            <td>{{=i.ethernet_ip}}</td>
                            <td>{{=i.ethernet_mip}}</td>
                         </tr>
                         {{pass}}
                     </table>
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">备注</th>
				<td>{{=comment}}</td>
			</tr>      
            </tbody>    
		</table>
</div>
{{end}}